﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;
using WeiBeeCommon.Core;

namespace QunFaExpert
{
    /// <summary>
    /// Interaction logic for WeiBeeTypeSelector.xaml
    /// </summary>
    public partial class WeiBeeTypeSelector : Window
    {
        public WeiBeeType SelectedType = WeiBeeType.None;
        public WeiBeeTypeSelector()
        {
            InitializeComponent();
        }
        
        private void buttonOk_Click(object sender, RoutedEventArgs e)
        {
            SelectedType = radioButtonSina.IsChecked.Value ? WeiBeeType.Sina : SelectedType;
            SelectedType = radioButtonSohu.IsChecked.Value ? WeiBeeType.Sohu : SelectedType;
            SelectedType = radioButtonQQ.IsChecked.Value ? WeiBeeType.QQ : SelectedType;
            DialogResult = true;
            Close();
        }
    }
}
